public class Test {
    /**
     * 双向链表的测试
     * @param args
     */
    public static void main(String[] args) {
        MyLinkedList myLinkedList=new MyLinkedList();

        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.addLast(5);
        myLinkedList.addIndex(5,99);
        myLinkedList.remove(1);
        myLinkedList.remove(99);

        myLinkedList.display();
    }
}
